<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Application Name
    |--------------------------------------------------------------------------
    |
    | This value is the name of your application. This value is used when the
    | framework needs to place the application's name in a notification or
    | any other location as required by the application or its packages.
    |
    */

    'name' => env('APP_NAME', 'Laravel'),

    /*
    |--------------------------------------------------------------------------
    | Application Environment
    |--------------------------------------------------------------------------
    |
    | This value determines the "environment" your application is currently
    | running in. This may determine how you prefer to configure various
    | services your application utilizes. Set this in your ".env" file.
    |
    */

    'env' => env('APP_ENV', 'production'),

    /*
    |--------------------------------------------------------------------------
    | Application Debug Mode
    |--------------------------------------------------------------------------
    |
    | When your application is in debug mode, detailed error messages with
    | stack traces will be shown on every error that occurs within your
    | application. If disabled, a simple generic error page is shown.
    |
    */

    'debug' => env('APP_DEBUG', false),

    /*
    |--------------------------------------------------------------------------
    | Application URL
    |--------------------------------------------------------------------------
    |
    | This URL is used by the console to properly generate URLs when using
    | the Artisan command line tool. You should set this to the root of
    | your application so that it is used when running Artisan tasks.
    |
    */

    'url' => env('APP_URL', 'http://localhost'),
    'file_url' => env('FILE_URL', 'http://localhost'),

    /*
    |--------------------------------------------------------------------------
    | Application Timezone
    |--------------------------------------------------------------------------
    |
    | Here you may specify the default timezone for your application, which
    | will be used by the PHP date and date-time functions. We have gone
    | ahead and set this to a sensible default for you out of the box.
    |
    */

    'timezone' => 'Asia/Shanghai',

    /*
    |--------------------------------------------------------------------------
    | Application Locale Configuration
    |--------------------------------------------------------------------------
    |
    | The application locale determines the default locale that will be used
    | by the translation service provider. You are free to set this value
    | to any of the locales which will be supported by the application.
    |
    */

    'locale' => 'cn',

    /*
    |--------------------------------------------------------------------------
    | Application Fallback Locale
    |--------------------------------------------------------------------------
    |
    | The fallback locale determines the locale to use when the current one
    | is not available. You may change the value to correspond to any of
    | the language folders that are provided through your application.
    |
    */

    'fallback_locale' => 'en',

    /*
    |--------------------------------------------------------------------------
    | Encryption Key
    |--------------------------------------------------------------------------
    |
    | This key is used by the Illuminate encrypter service and should be set
    | to a random, 32 character string, otherwise these encrypted strings
    | will not be safe. Please do this before deploying an application!
    |
    */

    'key' => env('APP_KEY'),

    'cipher' => 'AES-256-CBC',

    /*
    |--------------------------------------------------------------------------
    | Logging Configuration
    |--------------------------------------------------------------------------
    |
    | Here you may configure the log settings for your application. Out of
    | the box, Laravel uses the Monolog PHP logging library. This gives
    | you a variety of powerful log handlers / formatters to utilize.
    |
    | Available Settings: "single", "daily", "syslog", "errorlog"
    |
    */

    'log' => env('APP_LOG', 'single'),

    'log_level' => env('APP_LOG_LEVEL', 'debug'),

    /*
    |--------------------------------------------------------------------------
    | Autoloaded Service Providers
    |--------------------------------------------------------------------------
    |
    | The service providers listed here will be automatically loaded on the
    | request to your application. Feel free to add your own services to
    | this array to grant expanded functionality to your applications.
    |
    */

    'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
        Illuminate\Cookie\CookieServiceProvider::class,
        Illuminate\Database\DatabaseServiceProvider::class,
        Illuminate\Encryption\EncryptionServiceProvider::class,
        Illuminate\Filesystem\FilesystemServiceProvider::class,
        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
        Illuminate\Hashing\HashServiceProvider::class,
        Illuminate\Mail\MailServiceProvider::class,
        Illuminate\Notifications\NotificationServiceProvider::class,
        Illuminate\Pagination\PaginationServiceProvider::class,
        Illuminate\Pipeline\PipelineServiceProvider::class,
        Illuminate\Queue\QueueServiceProvider::class,
        Illuminate\Redis\RedisServiceProvider::class,
        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Translation\TranslationServiceProvider::class,
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,
        Collective\Html\HtmlServiceProvider::class,

        /* 云存储 */
//        Yangyifan\Upload\UploadServiceProvider::class,
        /*
         * Package Service Providers...
         */

        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        // App\Providers\BroadcastServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,
        //--自定义扩展服务--//
        //第三方服务
        App\Providers\LibrariesServiceProvider::class,
        \Mews\Captcha\CaptchaServiceProvider::class,
        Overtrue\LaravelFilesystem\Qiniu\QiniuStorageServiceProvider::class,
    ],

    /*
    |--------------------------------------------------------------------------
    | Class Aliases
    |--------------------------------------------------------------------------
    |
    | This array of class aliases will be registered when this application
    | is started. However, feel free to register as many as you wish as
    | the aliases are "lazy" loaded so they don't hinder performance.
    |
    */

    'aliases' => [

        'App' => Illuminate\Support\Facades\App::class,
        'Artisan' => Illuminate\Support\Facades\Artisan::class,
        'Auth' => Illuminate\Support\Facades\Auth::class,
        'Blade' => Illuminate\Support\Facades\Blade::class,
        'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
        'Bus' => Illuminate\Support\Facades\Bus::class,
        'Cache' => Illuminate\Support\Facades\Cache::class,
        'Config' => Illuminate\Support\Facades\Config::class,
        'Cookie' => Illuminate\Support\Facades\Cookie::class,
        'Crypt' => Illuminate\Support\Facades\Crypt::class,
        'DB' => Illuminate\Support\Facades\DB::class,
        'Eloquent' => Illuminate\Database\Eloquent\Model::class,
        'Event' => Illuminate\Support\Facades\Event::class,
        'File' => Illuminate\Support\Facades\File::class,
        'Gate' => Illuminate\Support\Facades\Gate::class,
        'Hash' => Illuminate\Support\Facades\Hash::class,
        'Lang' => Illuminate\Support\Facades\Lang::class,
        'Log' => Illuminate\Support\Facades\Log::class,
        'Mail' => Illuminate\Support\Facades\Mail::class,
        'Notification' => Illuminate\Support\Facades\Notification::class,
        'Password' => Illuminate\Support\Facades\Password::class,
        'Queue' => Illuminate\Support\Facades\Queue::class,
        'Redirect' => Illuminate\Support\Facades\Redirect::class,
        'Redis' => Illuminate\Support\Facades\Redis::class,
        'Request' => Illuminate\Support\Facades\Request::class,
        'Response' => Illuminate\Support\Facades\Response::class,
        'Route' => Illuminate\Support\Facades\Route::class,
        'Schema' => Illuminate\Support\Facades\Schema::class,
        'Session' => Illuminate\Support\Facades\Session::class,
        'Storage' => Illuminate\Support\Facades\Storage::class,
        'URL' => Illuminate\Support\Facades\URL::class,
        'Validator' => Illuminate\Support\Facades\Validator::class,
        'View' => Illuminate\Support\Facades\View::class,
        'Form' => Collective\Html\FormFacade::class,
        'Html' => Collective\Html\HtmlFacade::class,
        'Captcha' => Mews\Captcha\Facades\Captcha::class,
    ],

    'diseasecorn' => [
        ['crops_id' => 8,
            'crops_name' => '苹果',
            'type'=>'apple',

            'disease' => array(
                array(
                    'case_id' => 1,
                    'case_name' => '苹果斑点病',
                    'case_key' => 'apple_spotte',
                ),
                array(
                    'case_id' => 2,
                    'case_name' => '苹果褐斑病',
                    'case_key' => 'apple_brown',
                ),
                array(
                    'case_id' => 3,
                    'case_name' => '苹果树干腐烂病',
                    'case_key' => 'apple_rot',
                ),
                array(
                    'case_id' => 4,
                    'case_name' => '苹果树干轮纹病',
                    'case_key' => 'apple_ring',
                ),
                array(
                    'case_id' => 6,
                    'case_name' => '苹果炭疽叶枯病',
                    'case_key' => 'apple_anthrax',
                ),
                array(
                    'case_id' => 7,
                    'case_name' => '苹果叶片锈病',
                    'case_key' => 'apple_rust',
                ),
            )
        ],
    ],

    'diseasepart' => [
        [
            'crops_position_id' => 1,
            'crop_position_name' => '果实',
        ],
        [
            'crops_position_id' => 2,
            'crop_position_name' => '叶子',
        ],
        [
            'crops_position_id' => 3,
            'crop_position_name' => '躯干',
        ],
    ],

    'hotwords' => [
        "腐烂病",
        "花脸病",
        "早期落叶",
        "黑心病",
        "烂果",
        "苦痘病",
        "背上枝",
        "施肥",
        "修剪",
        "拉枝",
        "品种",
        "秋施肥",
        "摘袋",
        "套袋",
    ],

    'disease_no' => ['no_apple'=>'不是苹果','no_corn'=>'不是苹果','no_eggplant'=>'不是茄子',
        'no_grape'=>'不是葡萄','no_potato'=>'不是马铃薯','no_cucumber'=>'不是黄瓜','no_peanut'=>'不是花生','no_tomato'=>'不是番茄','no_wheat'=>'不是小麦','no_garlic'=>'不是大蒜','no_pepper'=>'不是辣椒','no_rice'=>'不是水稻','no_citrus'=>'不是柑橘',
        'apple_no'=>'不是苹果','corn_no'=>'不是苹果','eggplant_no'=>'不是茄子',
        'grape_no'=>'不是葡萄','potato_no'=>'不是马铃薯','cucumber_no'=>'不是黄瓜','peanut_no'=>'不是花生','tomato_no'=>'不是番茄','wheat_no'=>'不是小麦','garlic_no'=>'不是大蒜','pepper_no'=>'不是辣椒','rice_no'=>'不是水稻','citrus_no'=>'不是柑橘',
    ],

    'permissions' => [
        10 => '作物管理',
        20 => '农事管理',
        30 => '用户管理',
        40 => '管理员管理',
        50 => '大棚管理',
        60 => '设备管理',
        70 => '农事管理（内部）',

    ],

    //虫害
    'pest' => [
        ['cate_id'=>114,'cate_name'=>'绿盲蝽'],
        ['cate_id'=>115,'cate_name'=>'蓟马'],
        ['cate_id'=>116,'cate_name'=>'粉蚧'],
        ['cate_id'=>117,'cate_name'=>'斑叶蝉（浮尘子）'],
        ['cate_id'=>118,'cate_name'=>'斑衣蜡蝉'],
        ['cate_id'=>119,'cate_name'=>'金龟子'],
        ['cate_id'=>120,'cate_name'=>'透翅蛾'],
        ['cate_id'=>121,'cate_name'=>'天蛾'],
        ['cate_id'=>122,'cate_name'=>'天牛'],
        ['cate_id'=>123,'cate_name'=>'根瘤蚜'],
        ['cate_id'=>124,'cate_name'=>'瘿螨'],
        ['cate_id'=>125,'cate_name'=>'蚜虫'],
        ['cate_id'=>126,'cate_name'=>'蚂蚁'],
        ['cate_id'=>127,'cate_name'=>'卷叶蛾'],
        ['cate_id'=>128,'cate_name'=>'斑潜蝇'],
        ['cate_id'=>706,'cate_name'=>'其他'],
    ],

    //病害
    'disease' => [
        ['cate_id'=>92,'cate_name'=>'霜霉病'],
        ['cate_id'=>93,'cate_name'=>'黑痘病'],
        ['cate_id'=>94,'cate_name'=>'白粉病'],
        ['cate_id'=>95,'cate_name'=>'白腐病'],
        ['cate_id'=>96,'cate_name'=>'灰霉病'],
        ['cate_id'=>97,'cate_name'=>'穗轴褐枯病'],
        ['cate_id'=>98,'cate_name'=>'炭疽病'],
        ['cate_id'=>99,'cate_name'=>'房枯病'],
        ['cate_id'=>100,'cate_name'=>'酸腐病'],
        ['cate_id'=>101,'cate_name'=>'溃疡病'],
        ['cate_id'=>102,'cate_name'=>'病毒病'],
        ['cate_id'=>103,'cate_name'=>'褐斑病'],
        ['cate_id'=>104,'cate_name'=>'黑腐病'],
        ['cate_id'=>105,'cate_name'=>'轮纹病'],
        ['cate_id'=>106,'cate_name'=>'根癌病'],
        ['cate_id'=>107,'cate_name'=>'软腐病'],
        ['cate_id'=>108,'cate_name'=>'枝枯病'],
        ['cate_id'=>109,'cate_name'=>'锈病'],
        ['cate_id'=>110,'cate_name'=>'细菌性角斑病'],
        ['cate_id'=>111,'cate_name'=>'皮尔斯病'],
        ['cate_id'=>112,'cate_name'=>'根结线虫病'],
        ['cate_id'=>409,'cate_name'=>'蔓枯病'],
        ['cate_id'=>705,'cate_name'=>'其他'],
    ],

    //植物营养
    'plantnutrition' => [
        ['cate_id'=>535,'cate_name'=>'生根'],
        ['cate_id'=>536,'cate_name'=>'膨果'],
        ['cate_id'=>537,'cate_name'=>'转色'],
        ['cate_id'=>552,'cate_name'=>'叶面肥'],
        ['cate_id'=>538,'cate_name'=>'催花'],
        ['cate_id'=>539,'cate_name'=>'缺素症'],
        ['cate_id'=>540,'cate_name'=>'土壤配方'],
        ['cate_id'=>541,'cate_name'=>'追肥'],
        ['cate_id'=>542,'cate_name'=>'基肥'],
        ['cate_id'=>543,'cate_name'=>'缓解药害'],
        ['cate_id'=>544,'cate_name'=>'花芽分化'],
        ['cate_id'=>545,'cate_name'=>'打破休眠'],
        ['cate_id'=>546,'cate_name'=>'促进花絮分离'],
        ['cate_id'=>547,'cate_name'=>'保果'],
        ['cate_id'=>548,'cate_name'=>'上色'],
        ['cate_id'=>549,'cate_name'=>'冻害'],
        ['cate_id'=>550,'cate_name'=>'高温胁迫'],
        ['cate_id'=>551,'cate_name'=>'其他'],
    ],

    //草害
    'weed' => [
        ['cate_id'=>365,'cate_name'=>'半年生杂草'],
        ['cate_id'=>366,'cate_name'=>'一年生杂草'],
        ['cate_id'=>367,'cate_name'=>'多年生杂草'],
        ['cate_id'=>368,'cate_name'=>'顽固型杂草'],
    ],

    //农事
    'farming' => [
        ['cate_id'=>107,'cate_name'=>'巡园'],
        ['cate_id'=>31,'cate_name'=>'育苗'],
        ['cate_id'=>32,'cate_name'=>'保温'],
        ['cate_id'=>33,'cate_name'=>'通风'],
        ['cate_id'=>34,'cate_name'=>'起垄'],
        ['cate_id'=>35,'cate_name'=>'定植'],
        ['cate_id'=>36,'cate_name'=>'蘸根'],
        ['cate_id'=>37,'cate_name'=>'覆膜'],
        ['cate_id'=>38,'cate_name'=>'滴灌'],
        ['cate_id'=>39,'cate_name'=>'整枝'],
        ['cate_id'=>41,'cate_name'=>'吊秧'],
        ['cate_id'=>42,'cate_name'=>'留瓜'],
        ['cate_id'=>43,'cate_name'=>'打顶'],
        ['cate_id'=>44,'cate_name'=>'授粉'],
        ['cate_id'=>45,'cate_name'=>'选瓜'],
        ['cate_id'=>46,'cate_name'=>'吊瓜'],
        ['cate_id'=>27,'cate_name'=>'灌水'],
        ['cate_id'=>106,'cate_name'=>'催芽促梢'],
        ['cate_id'=>105,'cate_name'=>'绑蔓掐须'],
        ['cate_id'=>21,'cate_name'=>'修穗'],
        ['cate_id'=>19,'cate_name'=>'摘心'],
        ['cate_id'=>20,'cate_name'=>'抹芽定梢'],
        ['cate_id'=>23,'cate_name'=>'拉花'],
        ['cate_id'=>22,'cate_name'=>'疏果'],
        ['cate_id'=>24,'cate_name'=>'套袋'],
        ['cate_id'=>22,'cate_name'=>'疏果'],
        ['cate_id'=>28,'cate_name'=>'人工除草'],
        ['cate_id'=>108,'cate_name'=>'采收'],
        ['cate_id'=>104,'cate_name'=>'深耕松土'],
        ['cate_id'=>26,'cate_name'=>'夏剪'],
        ['cate_id'=>25,'cate_name'=>'冬剪'],
        ['cate_id'=>29,'cate_name'=>'其他'],
    ],

    //极端天气
    'weatherwarning' => [
        "阴" => "前2天不能浇水。后1天提前拉小风口，2天内禁止浇水。连续阴天3以上，使用烟熏剂杀菌。",
        "风" => "风口根据温度决定拉小或关闭，压实薄膜。",
        "雨" => "关闭风口。",
        "雪" => "关闭风口，盖上棉被或其他保温措施。",
        "寒潮" => "保温、增温，前2d内禁止浇水。",
        "冰雹" => "盖上棉被或草苫，有条件的拉起防雹网。",
    ],
    //病害预警
    'diseasewarning' => [
        'Anthrax' => [//炭疽病
            'humiditymin' => '97',
            'temperaturemin' => '22',
            'temperaturemax' => '26',
            'msg' => '此阶段高发炭疽病，请注意防护和打药',
        ],
        'powderymildew' => [//白粉病
            'humiditymin' => '90',
            'temperaturemin' => '23',
            'temperaturemax' => '28',
            'msg' => '此阶段高发白粉病，请注意防护和打药',
        ],
    ],
];
